package com.tonyodev.fetch2core;

/**
 * 静态字符变量
 *
 * @since 2021-05-20
 */
public class FetchErrorStrings {
    /**
     * DOWNLOAD_NOT_FOUND
     */
    public static final String DOWNLOAD_NOT_FOUND = "fetch download not found";
    /**
     * FAILED_TO_ENQUEUE_REQUEST
     */
    public static final String FAILED_TO_ENQUEUE_REQUEST = "UNIQUE constraint failed: requests._id (code 1555)";
    /**
     * FAILED_TO_ENQUEUE_REQUEST_FILE_FOUND
     */
    public static final String FAILED_TO_ENQUEUE_REQUEST_FILE_FOUND = "UNIQUE constraint failed: requests._file (code 2067)";
    /**
     * EMPTY_RESPONSE_BODY
     */
    public static final String EMPTY_RESPONSE_BODY = "empty_response_body";
    /**
     * RESPONSE_NOT_SUCCESSFUL
     */
    public static final String RESPONSE_NOT_SUCCESSFUL = "request_not_successful";
    /**
     * UNKNOWN_ERROR
     */
    public static final String UNKNOWN_ERROR = "unknown";
    /**
     * FNC
     */
    public static final String FNC = "FNC";
    /**
     * ENOENT
     */
    public static final String ENOENT = "open failed: ENOENT (No such file or directory)";
    /**
     * ETIMEDOUT
     */
    public static final String ETIMEDOUT = "recvfrom failed: ETIMEDOUT (Connection timed out)";
    /**
     * IO404
     */
    public static final String IO404 = "java.io.IOException: 404";
    /**
     * NO_ADDRESS_HOSTNAME
     */
    public static final String NO_ADDRESS_HOSTNAME = "No address associated with hostname";
    /**
     * CONNECTION_TIMEOUT
     */
    public static final String CONNECTION_TIMEOUT = "timeout";
    /**
     * HOST_RESOLVE_ISSUE
     */
    public static final String HOST_RESOLVE_ISSUE = "Unable to resolve host";
    /**
     * EACCES
     */
    public static final String EACCES = "open failed: EACCES (Permission denied)";
    /**
     * ENOSPC
     */
    public static final String ENOSPC = "write failed: ENOSPC (No space left on device)";
    /**
     * DATABASE_DISK_FULL
     */
    public static final String DATABASE_DISK_FULL = "database or disk is full (code 13)";
    /**
     * FETCH_DATABASE_ERROR
     */
    public static final String FETCH_DATABASE_ERROR = "Fetch data base error";
    /**
     * UNIQUE_ID_DATABASE
     */
    public static final String UNIQUE_ID_DATABASE = "UNIQUE constraint failed: requests._id";
    /**
     * FAILED_TO_CONNECT
     */
    public static final String FAILED_TO_CONNECT = "Failed to connect";
    /**
     * SOFTWARE_ABORT_CONNECTION
     */
    public static final String SOFTWARE_ABORT_CONNECTION = "Software caused connection abort";
    /**
     * READ_TIME_OUT
     */
    public static final String READ_TIME_OUT = "Read timed out at";
    /**
     * GLOBAL_FETCH_CONFIGURATION_NOT_SET
     */
    public static final String GLOBAL_FETCH_CONFIGURATION_NOT_SET = "Global Fetch Configuration not set";
    /**
     * INVALID_CONTENT_HASH
     */
    public static final String INVALID_CONTENT_HASH = "invalid content hash";
    /**
     * REQUEST_WITH_FILE_PATH_ALREADY_EXIST
     */
    public static final String REQUEST_WITH_FILE_PATH_ALREADY_EXIST = "request_with_file_path_already_exist";
    /**
     * DOWNLOAD_INCOMPLETE
     */
    public static final String DOWNLOAD_INCOMPLETE = "download_incomplete";
    /**
     * FAILED_TO_UPDATE_REQUEST
     */
    public static final String FAILED_TO_UPDATE_REQUEST = "failed_to_update_request";
    /**
     * FAILED_TO_ADD_COMPLETED_DOWNLOAD
     */
    public static final String FAILED_TO_ADD_COMPLETED_DOWNLOAD = "failed_to_add_completed_download";
    /**
     * FETCH_FILE_SERVER_INVALID_RESPONSE_TYPE
     */
    public static final String FETCH_FILE_SERVER_INVALID_RESPONSE_TYPE = "fetch_file_server_invalid_response_type";
    /**
     * REQUEST_DOES_NOT_EXIST
     */
    public static final String REQUEST_DOES_NOT_EXIST = "request_does_not_exist";
    /**
     * NO_NETWORK_CONNECTION
     */
    public static final String NO_NETWORK_CONNECTION = "no_network_connection";
    /**
     * FILE_NOT_FOUND
     */
    public static final String FILE_NOT_FOUND = "file_not_found";
    /**
     * FETCH_FILE_SERVER_URL_INVALID
     */
    public static final String FETCH_FILE_SERVER_URL_INVALID = "fetch_file_server_url_invalid";
    /**
     * ENQUEUED_REQUESTS_ARE_NOT_DISTINCT
     */
    public static final String ENQUEUED_REQUESTS_ARE_NOT_DISTINCT = "request_list_not_distinct";
    /**
     * ENQUEUE_NOT_SUCCESSFUL
     */
    public static final String ENQUEUE_NOT_SUCCESSFUL = "enqueue_not_successful";
    /**
     * AWAIT_CALL_ON_UI_THREAD
     */
    public static final String AWAIT_CALL_ON_UI_THREAD = "await_call_on_ui_thread";
    /**
     * BLOCKING_CALL_ON_UI_THREAD
     */
    public static final String BLOCKING_CALL_ON_UI_THREAD = "blocking_call_on_ui_thread";
    /**
     * FILE_CANNOT_BE_RENAMED
     */
    public static final String FILE_CANNOT_BE_RENAMED = "file_cannot_be_renamed";
    /**
     * FAILED_RENAME_FILE_ASSOCIATED_WITH_INCOMPLETE_DOWNLOAD
     */
    public static final String FAILED_RENAME_FILE_ASSOCIATED_WITH_INCOMPLETE_DOWNLOAD = "cannot rename file associated with incomplete download";
    /**
     * FILE_ALLOCATION_ERROR
     */
    public static final String FILE_ALLOCATION_ERROR = "file_allocation_error";
    /**
     * CLEAR_TEXT_NETWORK_VIOLATION
     */
    public static final String CLEAR_TEXT_NETWORK_VIOLATION = "Cleartext HTTP traffic to";
}
